<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <link href="css/mui.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="css/aui.css"/>
    <link rel="stylesheet" href="css/master.css"/>
    <script src="js/jquery-1.8.2.min.js"></script>
    <script>
        autoload=function(){
            var data={};
            data.flage=0;
            data.user_id=user_id;
            data.userpwd=userpwd;
            $.ajax({
                type: "POST",
                data: data,
                url: "http://xjh.taoleyizhan.com/wap/index.php?ctl=user&act=setData",
                dataType: "json",
                success: function (json) {
                    console.log(json)
                    page_data=json
                    $(".mui-title").html(page_data.page_title)
                    $(".user").val(page_data.list[0].user_name);
                    $(".mobile").val(page_data.list[0].mobile);
                    $(".qq").val(page_data.list[0].qq);
                    $(".my_intro").val(page_data.list[0].my_intro);
                    if(page_data.list[0].alipayacount==0){
                        $(".zhifu").val("")
                    }else{
                        $(".zhifu").val(page_data.list[0].alipayacount);
                    }

//                        InitChat();
                },
                error:function(json){
                    console.log(json);
                }
            });
        }

    </script>
    <script src="js/init.js"></script>
</head>
<body>
<header class="mui-bar mui-bar-nav">
    <a class="mui-icon mui-icon-undo mui-icon-left-nav mui-pull-left" href="set_revise.html"></a>
    <h1 class="mui-title">修改资料</h1>
</header>
<div class="mui-content" style="font: 14px/40px '';padding: 60px 20px">
    <div>昵称 <input type="text" class="user"></div>
    <div>电话 <input type="text" disabled="disabled" class="mobile"></div>
    <div>支付宝 <input type="text" disabled="disabled" class="zhifu"></div>
    <div>邮箱 <input type="text" class="qq"></div>
    <div>签名 <input type="text" class="my_intro"></div>
    <div class="mui-row mui-text-center aui-mar-t-15">
        <a href="#"><button id="queding" type="button" class="save mui-btn mui-btn-primary aui-col-5">确认</button></a>
    </div>
</div>
</body>
<script>
    $("#queding").click(function () {
        var   sendData={};
        sendData.flage=1;
        sendData.user_id=user_id;
        sendData.name=$(".user").val();
        sendData.mobile=$(".mobile").val();
        sendData.qq=$(".qq").val();
        sendData.my_intro=$(".my_intro").val();
        // sendData.my_zhifu=$(".zhifu").val();
        console.log(sendData);
        $.ajax({
            url:"http://xjh.taoleyizhan.com/wap/index.php?ctl=user&act=setData",
            data:sendData,
            type:"POST",
            dataType:"json",
            success:function (json) {
                console.log(json);
                window.location.href="set_revise.html"
            }
        })
    })
</script>
</html>